package com.yan.design.two.structure.s5;

/**
 * 5. 外观模式
 *      DVD类
 * @author shengren.yan
 * @create 2022-07-31
 */
public class DVD {

    // 饿汉式 创建类
    private static DVD  instance = new DVD();

    private DVD(){ }

    public void on(){
        System.out.println("  dvd on ");
    }

    public void off(){
        System.out.println("  dvd off ");
    }

    public static DVD getObj(){
        return instance;
    }

}
